package com.theorydance.springsourcestudy;

import com.theorydance.springsourcestudy.autowired.conf.TmpPlus;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * xml方式进行配置bean，用于研究spring IOC源码
 */
public class XmlApplication {
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring.xml");
		TmpPlus bean = context.getBean(TmpPlus.class);
		System.out.println(bean);
	}

}
